Don't clear HCR_VM bit when updating VTTBR.
authorJun Sun <jsun@junsun.net>
Mon, 10 Oct 2016 19:27:56 +0000 (12:27 -0700)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 6 Dec 2016 18:32:10 +0000 (10:32 -0800)
commitc655b112fb5fd677e0943dafaa1071501f8fc190
tree9701cba482cabe9848012eaf0619205acc72b490
parente25ddb6dae04823aeef2c07907d3f0377a905cdd
Don't clear HCR_VM bit when updating VTTBR.

Currently function p2m_restore_state() would clear HCR_VM bit, i.e.,
disabling stage2 translation, before updating VTTBR register. After
some research and talking to ARM support, I got confirmed that this is not
necessary. We are currently working on a new platform that would need this
to be removed.

The patch is tested on FVP foundation model.

Signed-off-by: Jun Sun <jsun@junsun.net>
Acked-by: Steve Capper <steve.capper@linaro.org>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/p2m.c